<thead>
    <tr>
        {foreach from=$list.columns item=name}{if $list.order eq $name}{if $list.direction}{assign var=direction value=desc}{else}{assign var=direction value=asc}{/if}{else}{assign var=direction value=null}{/if}
        {if not in_array($name, $list.noorder)}
        <th{if $list.order eq $name} class="order {if $direction eq 'desc'}asc{else}desc{/if}"{/if}><a href="{url order=$name direction=$direction through=$through_order}">{$name|translate}</a></th>
        {else}
        <th>{$name|translate}</th>
        {/if}
        {/foreach}
        {if count($list.actions) > 0}
        <th colspan="{$list.actions|@count}" class="actions">{'Actions'|translate}</th>
        {/if}
    </tr>
</thead>